package com.tojabo.queue;

public class MainTest {
	
	public static void main(String[] args) {
		
		PriorityQ queue = new PriorityQ(5);
		queue.insert(30);
		queue.insert(20);
		queue.insert(50);
		
		/*queue.remove();
		queue.remove();
		queue.remove();*/
		
		queue.insert(40);
		queue.insert(10);
		queue.insert(60);
		queue.insert(70);
		queue.insert(80);
		queue.insert(90);
		queue.insert(100);
		queue.insert(60);
		
		while(!queue.isEmpty()){
			System.out.println("size:"+queue.size());
			long n = queue.remove();
			System.out.println(n);
		}
		System.out.println("end !! maxSize="+queue.capacity());
	}

}
